Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Now $modified recurse on objects #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

hendrul
Copy link

@hendrul hendrul commented Sep 23, 2016

var car = {
   brand: 'Ford',
   color: 'Red',
   owner: {
      name: 'John Doe',
      age: 34
   }
}

var instance = Car.create(car);
instance.color = 'Blue';
instance.owner.name = 'Dick Harper';
console.log(instance.$modified()); //{ "color": "Blue", "owner": { "name": "Dick Harper" }}

@nateabele
Copy link
Member

Needs a test, but the patch looks good. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants